<?php
namespace app\models\request;

use yii\base\Model;

class ReqAddGoods extends Model
{
   private $goods_name;
   private $specs;
   private $pic;
   private $stock_num;
   private $desc_txt;
   private $need_points;
   private $type;
   private $give_points;
   private $is_exchange;

    /**
     * @return mixed
     */
    public function getGoodsName()
    {
        return $this->goods_name;
    }

    /**
     * @param mixed $goods_name
     */
    public function setGoodsName($goods_name)
    {
        $this->goods_name = $goods_name;
    }

    /**
     * @return mixed
     */
    public function getSpecs()
    {
        return $this->specs;
    }

    /**
     * @param mixed $specs
     */
    public function setSpecs($specs)
    {
        $this->specs = $specs;
    }

    /**
     * @return mixed
     */
    public function getPic()
    {
        return $this->pic;
    }

    /**
     * @param mixed $pic
     */
    public function setPic($pic)
    {
        $this->pic = $pic;
    }

    /**
     * @return mixed
     */
    public function getStockNum()
    {
        return $this->stock_num;
    }

    /**
     * @param mixed $stock_num
     */
    public function setStockNum($stock_num)
    {
        $this->stock_num = $stock_num;
    }

    /**
     * @return mixed
     */
    public function getDescTxt()
    {
        return $this->desc_txt;
    }

    /**
     * @param mixed $desc_txt
     */
    public function setDescTxt($desc_txt)
    {
        $this->desc_txt = $desc_txt;
    }

    /**
     * @return mixed
     */
    public function getNeedPoints()
    {
        return $this->need_points;
    }

    /**
     * @param mixed $need_points
     */
    public function setNeedPoints($need_points)
    {
        $this->need_points = $need_points;
    }

    /**
     * @return mixed
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * @param mixed $type
     */
    public function setType($type)
    {
        $this->type = $type;
    }

    /**
     * @return mixed
     */
    public function getGivePoints()
    {
        return $this->give_points;
    }

    /**
     * @param mixed $give_points
     */
    public function setGivePoints($give_points)
    {
        $this->give_points = $give_points;
    }

    /**
     * @return mixed
     */
    public function getIsExchange()
    {
        return $this->is_exchange;
    }

    /**
     * @param mixed $is_exchange
     */
    public function setIsExchange($is_exchange)
    {
        $this->is_exchange = $is_exchange;
    }




    public function rules()
    {
        return [
            [['goods_name'], 'required'],
        ];
    }


}